package dao;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;

public class MyBatisBaseDao extends SqlSessionDaoSupport {
	@Resource
	private SqlSessionFactory sessionFactoryTemp;

	public void setSessionFactoryTemp(SqlSessionFactory sessionFactoryTemp) {
		this.sessionFactoryTemp = sessionFactoryTemp;
	}

	@PostConstruct
	public void sessionFactory() {
		super.setSqlSessionFactory(sessionFactoryTemp);
	}
	
	
}
